package com.heima.model.wemedia.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;


@SuppressWarnings("serial")
@TableName("wm_user")
@Data
public class WmUser {
    //主键
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    //用户名
    private String username;
    //盐
    private String salt;
    //密码
    private String password;
    //用户头像
    private String avatar;
    //手机号
    private String phone;
    //邮箱
    private String email;
    //昵称
    private String nickname;
    //位置
    private String location;
    //账号状态;0: 未启用  , 1:启用
    private Integer status;
    //账号类型 ; 1 普通账号 , 2 大V账号
    private Integer type;
    //创建时间
    @TableField(value = "CREATED_TIME",fill = FieldFill.INSERT)
    private Date createdTime;
    //更新时间
    @TableField(value = "UPDATED_TIME",fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @TableField(value = "ap_user_id")
    private Long apUserId;
}
